package com.wkbb.sports.mapper;

import com.wkbb.common.base.BaseMapper;
import com.wkbb.sports.dto.AchievementDto;
import com.wkbb.sports.dto.AchievementProjectDto;
import com.wkbb.sports.model.HlifeAchievement;
import com.wkbb.sports.model.HlifeTerm;

import java.util.List;
import java.util.Map;

public interface HlifeAchievementMapper extends BaseMapper<HlifeAchievement> {

    List<AchievementProjectDto> getAchievementProjectList(Map<String, Object> params);

    List<AchievementDto> getAchievementUserList(Map<String, Object> params);

    List<AchievementProjectDto> getUserExamineAchievementList(Map<String, Object> params);

    List<AchievementProjectDto> getUserExamineAvgAchievementList(Map<String, Object> params);

    List<AchievementProjectDto> getUserPhysicalAchievementList(Map<String, Object> params);

    List<AchievementProjectDto> getUserPhysicalAvgAchievementList(Map<String, Object> params);
    
    void updateScore(HlifeAchievement achievement);

    List<HlifeAchievement> getAchivementByProjectId(Map<String, Object> params);

    List<HlifeTerm> getTermLatelyList(Map<String, Object> params);
}